import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'

const app = createApp(App)
app.config.globalProperties.$axios = axios  // 全局注册Axios
axios.defaults.baseURL = 'http://localhost:8080/api'  // 后端API基础路径
app.use(router).mount('#app')